package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SubtypeClause {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName supertypeName;

    public SubtypeClause(int beginIndex, SchemaQualifiedName supertypeName) {
        this.beginIndex = beginIndex;
        this.endIndex = supertypeName.getEndIndex();
        this.supertypeName = supertypeName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getSupertypeName() {
        return supertypeName;
    }

}
